import { property, eventProperty } from '@/utils/decorators';
export default class Scope {
  @property({ displayName: '数量', type: 'number' })
  count: number = 0;

  constructor () {
    console.log('hahaha');
  }

  title: string = '标题0';

  @eventProperty({ displayName: '点击' })
  handleClick(e: Event) {
    console.log('scope this: ', this);
    this.count += 1;
    this.title = '你好' + this.count;
  }
}
